package top.lshaci.learning.hutool;

import cn.hutool.core.img.Img;
import cn.hutool.core.io.FileUtil;
import org.junit.Test;

/**
 * UseImgUtil
 *
 * @author lshaci
 * @since 1.0.0
 */
public class UseImgUtil {

    @Test
    public void scala() {
        Img.from(FileUtil.file("D:\\System\\Pictures\\24a95d46cd99568b.jpg"))
                .setQuality(0.1)//压缩比率
                .write(FileUtil.file("D:\\System\\Pictures\\24a95d46cd99568b_.jpg"));
    }
}
